//
//  Database.h
//  e-nurse
//
//  Created by  on 12/12/12.
//  Copyright (c) 2012 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>

@class Record;
@class User;

@interface Database : NSObject

+(Database*)sharedInstance;

- (void)addUser:(User*)user;
- (void)updateUser:(User*)user;
- (User*)getUserById:(int)userId;

-(void)addRecord:(Record*)record userId:(int)userId;
-(NSArray*)getRecordsByDate:(NSDate*)startDay endDay:(NSDate*)endDay userId:(int)userId;
-(NSUInteger)getExceedStdTimesOfCurrentWeek;

@end
